/**
 * @param {Function} fn 标题组件获取名字
 * @description assemblyCode 为主键不能名字相同
 */
var comList = [
  // 测试用的小写k1
  {
    assemblyCode: "k1",
    name: "基地简介",
    titleImg: "templeone/title-boximg/bar1-1-1.png",
    titleDes: "ERIEF INTRODUCTION"
  },
  // 景区概览
  {
    assemblyCode: "K1",
    name: "基地简介",
    titleImg: "templeone/title-boximg/bar1-1-1.png",
    titleDes: "ERIEF INTRODUCTION"
  },
  {
    assemblyCode: "K2",
    name: "设施情况",
    titleImg: "templeone/title-boximg/bar1-1-2.png",
    titleDes: "LAND AITUATION"
  },
  {
    assemblyCode: "K3",
    name: "种养情况",
    titleImg: "templeone/title-boximg/bar1-1-3.png",
    titleDes: "PLANTING AND BREEDING"
  },
  {
    assemblyCode: "K4",
    name: '物联环境数据情况',
    titleImg: 'templeone/title-boximg/bar1-2-1.png',
    titleDes: 'IOT ENVIR DATA'
  },
  {
    assemblyCode: "K5",
    name: '农机作业',
    titleImg: 'templeone/title-boximg/bar1-2-2.png',
    titleDes: 'MACHINERY INFORMATION'
  },
  {
    assemblyCode: "K6",
    name: '环境实时数据',
    titleImg: 'templeone/title-boximg/bar1-2-3.png',
    titleDes: 'IOT ENVIR DATA'
  },
  // 基地概览
  {
    assemblyCode: "K7",
    name: "农事作业情况",
    titleImg: "templeone/title-boximg/bar2-1-1.png",
    titleDes: "ERIEF INTRODUCTION"
  },
  {
    assemblyCode: "K8",
    name: '投入品情况',
    titleImg: 'templeone/title-boximg/bar2-2-1.png',
    titleDes: 'INPUT'
  },
  {
    assemblyCode: "K9",
    name: '病虫害检测',
    titleImg: 'templeone/title-boximg/bar2-2-2.png',
    titleDes: 'FERSONNEL ORGANIZATION'
  },
  // 景区运营
  {
    assemblyCode: "K10",
    name: "收入情况",
    titleImg: "templeone/title-boximg/bar3-1-1.png",
    titleDes: "INCOM SITUATION"
  },
  {
    assemblyCode: "K11",
    name: "主要投入情况",
    titleImg: "templeone/title-boximg/bar3-1-2.png",
    titleDes: "INVEST MENT"
  },
  {
    assemblyCode: "K12",
    name: "农副产品",
    titleImg: "templeone/title-boximg/bar3-1-3.png",
    titleDes: "AGRICUL BY-PRODUCT"
  },
  {
    assemblyCode: "K13",
    name: '农产品销售统计',
    titleImg: 'templeone/title-boximg/bar3-2-1.png',
    titleDes: 'SALES STATISTICS'
  },
  {
    assemblyCode: "K14",
    name: '人员组织情况',
    titleImg: 'templeone/title-boximg/bar3-2-2.png',
    titleDes: 'FERSONNEL ORGANIZATION'
  },
  // 农产品销售
  {
    assemblyCode: "K15",
    name: "今年总销售额",
    titleImg: "templeone/title-boximg/bar4-1-1.png",
    titleDes: ""
  },
  {
    assemblyCode: "K16",
    name: "今年总销量",
    titleImg: "templeone/title-boximg/bar4-1-1.png",
    titleDes: ""
  },
  {
    assemblyCode: "K17",
    name: "农产品介绍",
    titleImg: "templeone/title-boximg/bar4-1-2.png",
    titleDes: "INTRODUCTION TO PRODUCTS"
  },
  {
    assemblyCode: "K18",
    name: "农产品价格走势及对比",
    titleImg: "templeone/test-title.png",
    titleDes: "PRICE TREND"
  },
  {
    assemblyCode: "K19",
    name: '销售统计',
    titleImg: 'templeone/title-boximg/bar4-2-1.png',
    titleDes: 'SALES STATISTICS'
  },
  {
    assemblyCode: "K20",
    name: '销售对象',
    titleImg: 'templeone/title-boximg/bar4-2-1.png',
    titleDes: 'SALES TAEGET'
  },
  // 休闲农旅
  {
    assemblyCode: "K21",
    name: "产品类型及详情",
    titleImg: "templeone/title-boximg/bar5-1-1.png",
    titleDes: "INDUSTARY TYPE"
  },
  {
    assemblyCode: "K22",
    name: "产业介绍",
    titleImg: "templeone/title-boximg/bar5-1-2.png",
    titleDes: "INDUSTRY INTRODUCTION"
  },
  {
    assemblyCode: "K23",
    name: "客流量与产值",
    titleImg: "templeone/title-boximg/bar5-2-1.png",
    titleDes: "FLOW & OUTPUT VALUE"
  },
  // 共同富裕
  {
    assemblyCode: "K24",
    name: "就业岗位（个）",
    titleImg: "templeone/title-boximg/bar6-1-1.png",
    titleDes: "EMPLOYMENT SITUATION"
  },
  {
    assemblyCode: "K25",
    name: "相关图片",
    titleImg: "templeone/title-boximg/bar6-1-2.png",
    titleDes: "PICTURE"
  },
  {
    assemblyCode: "K26",
    name: '服务情况',
    titleImg: 'templeone/title-boximg/bar6-1-2.png',
    titleDes: 'SERVICE SITUATION'
  },
  {
    assemblyCode: "K27",
    name: "共同增收",
    titleImg: "templeone/title-boximg/bar6-1-2.png",
    titleDes: "INCOME GROWTH"
  },
  // 翻牌器
  {
    assemblyCode: "F1",
    name: "",
    titleImg: "",
    titleDes: ""
  }
]
export function getTitleName(typ) {
  var comMes
  comList.forEach((item) => {
    if (item.assemblyCode === typ) {
      comMes = item
    }
  })
  return comMes
}
// 获取所有单元组件
export function getTitleList() {
  return comList
}
